/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 * NuGat-API named Chameleon developed by Simon De Baets to Verimag.
 *
 */
package chameleon.view.command;

import chameleon.model.NuGatManager.NuGatManager;
import chameleon.view.input.Input;

/**
 *
 * @author simon
 */
class ShowVarsCommand extends Command {

    private String[] argv_;
    
    public ShowVarsCommand(Input input, String[] argv) {
        super(input,false,false);
        argv_ = argv;
    }

    @Override
    public Input execute() {
        InternalCheckCommand check = new InternalCheckCommand(input_, 2);
        if (check.isOk()){
            NuGatManager manager = (NuGatManager) input_.getManager();
            manager.showVars(argv_);
        }
        return input_;
    }
    
    
    
}
